using System;
using Coderoom.ScrumPlanner.Data.Contracts;

namespace Coderoom.ScrumPlanner.Data
{
	public abstract class Service<T> where T : IRepository
	{
		protected Service(T repository)
		{
			if (repository == null)
				throw new ArgumentNullException("repository");

			Repository = repository;
		}

		protected T Repository { get; set; }
	}
}